﻿class com.troyworks.misc.InesaClass extends MovieClip
{
	public var myNum : Number = 1;
	public var myString : String = "hi";
	public var isDragging:Boolean = false;
	//inherited from the MovieClip in the library
	public var selected_mc:MovieClip;
	public function InesaClass (name : String)
	{
		super();
		trace ("new com.troyworks.misc.InesaClass " + name);
		this.myString = name;
		this.myNum = 1;
	}

	public function onPress() : Void {
		this.pressMethod ();
	};
	public function onDragOver() : Void {
		this.pressMethod ();
	};
	public function pressMethod() : Void {
		trace ("onPress " + this.myString);
		gotoAndStop ("happy");
		this.isDragging = true;
		startDrag (true);
	};
	public function releaseMethod() : Void {
		trace ("onRelease " + this.myString);
		gotoAndStop ("unhappy");
		this.isDragging = false;
		stopDrag ();
	};
	public function onRelease() : Void {
		this.releaseMethod ();
	};
	public function onReleaseOutside() : Void {
		this.releaseMethod ();
	};
	public function onRollOver() : Void {
		selected_mc._visible = true;
	};
	public function onRollOut() : Void {
		selected_mc._visible = false;
	};
}
